package zhoug.player.exo;

import androidx.media3.exoplayer.ExoPlayer;
import androidx.media3.exoplayer.util.EventLogger;

/**
 * 播放器初始化配置
 *
 * @Author: zhoug
 * @Date: 2023/1/6
 * @Description:
 */
public class ExoPlayerInit {
    private static final String TAG = ">>>ExoPlayerInit";
    private static boolean debug = false;

    public static void init(boolean debug) {
        ExoPlayerInit.debug = debug;

    }


    protected static void initDebug(ExoPlayer exoPlayer) {
        if (debug && exoPlayer != null) {
            exoPlayer.addAnalyticsListener(new EventLogger());
        }

    }

}
